package com.dk.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.dk.service.TestService;

@Service //通过阿里巴巴的service注解,暴露接口
@org.springframework.stereotype.Service //spring实例化对象的注解
public class TestServiceImpl implements TestService {

    @Override
    public String test(String arg) {
        System.out.println("访问dubbo成功,参数为 >>>"+arg);

        return "调用成功";
    }
}
